// pages/my/my.js
var app = new getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    nickname:app.user.nickname,
    avatar: app.user.avatar,
    coinbalance: app.user.coinbalance,
    uid: app.user.uid,
    devurl: app.globalData.devurl
  },
  bprecordTo: function (e) {
    wx.navigateTo({
      url: '/pages/bprecord/bprecord'
    })
  },
  rechargeTo:function(e){
    wx.navigateTo({
      url: '/pages/recharge/recharge'
    })
  },
  msgcenterTo: function (e) {
    wx.navigateTo({
      url: '/pages/msgcenter/msgcenter'
    })
  },
  myorderTo: function (e) {
    wx.navigateTo({
      url: '/pages/myorder/myorder'
    })
  },
  feedbackTo: function (e) {
    wx.navigateTo({
      url: '/pages/feedback/feedback'
    })
  },
  aboutTo: function (e) {
    wx.navigateTo({
      url: '/pages/about/about'
    })
  },
  consumptionTo: function (e) {
    wx.navigateTo({
      url: '/pages/consumption/consumption'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})